package com.xbstar.wei.service2;

import java.io.File;
import java.util.Date;
import java.util.HashMap;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.json.JSONException;
import org.json.JSONObject;
import com.xbstar.wei.service2.Message.MediaType;



public class ss {

	/**
	 * @param args
	 */
	public static void mainwe(String[] args) {
	
//
		//////////////验证服务器菜单设置和链接获取
		String appid=APPProperties.APPID;
		String chouurl=WeiURL.getAuthor2ByAPPidAndUri(appid, WeiURL.myServer+"/chou.jsp");
		String nearUrl=WeiURL.getAuthor2ByAPPidAndUri(appid, WeiURL.myServer+"/neardep.jsp");
		String zhuceurl=WeiURL.getAuthor2ByAPPidAndUri(appid, WeiURL.myServer+"/register.jsp");
		String denglurl=WeiURL.getAuthor2ByAPPidAndUri(appid, WeiURL.myServer+"/Login.jsp");
		String zjjiluurl=WeiURL.getAuthor2ByAPPidAndUri(appid, WeiURL.myServer+"/historyAward.jsp");
		System.out.println("附近投注站");
		System.out.println(nearUrl);
		System.out.println("抽奖");
		System.out.println(chouurl);
		System.out.println("注册");
		System.out.println(zhuceurl);
		System.out.println("登录");
		System.out.println(denglurl);
		System.out.println("中奖记录");
		System.out.println(zjjiluurl);
		//String str="{\"button\":[{\"name\":\"发现\", \"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":'"+nearUrl+"'},{\"type\":\"view\",\"name\":\"抽奖\",\"url\":'"+chouurl+"'},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO\"}]},{\"type\":\"click\",\"name\":\"养老动态\",\"key\":\"V1001_TODAY_FARK\"},{\"type\":\"click\",\"name\":\"老人生活\",\"key\":\"m3001\"}]}";
		
		
		//cxfd
		//{\"type\":\"click\",\"name\":\"查询福豆\",\"key\":\"V3004_FUDOU\"}
		//zjjl
		//{\"type\":\"view\",\"name\":\"中奖记录\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FhistoryAward.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"}
		
		//String str="{'button':[{'name':'发现', 'sub_button':[{'type':'view','name':'附近投注站','url':'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fneardep.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'},{'type':'view','name':'抽奖','url':'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fchou.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'},{'type':'click','name':'签到','key':'V1001_QIAN_DAO'}]},{'type':'click','name':'养老动态','key':'V1001_TODAY_FARK'},{'type':'click','name':'老人生活','key':'m3001'}]}";
//		String str1="{\"button\":[{\"name\":\"福彩资讯\",\"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fneardep.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"抽奖\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fchou.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO\"},{\"type\":\"view\",\"name\":\"用户验证\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FLogin.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//+"\"},{\"type\":\"view\",\"name\":\"注册\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fregister.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"}]},{\"type\":\"click\",\"name\":\"查询福豆\",\"key\":\"V3004_FUDOU\"},{\"type\":\"view\",\"name\":\"中奖记录\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FhistoryAward.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//+"\"}]}";
		/*String str="{\"button\":[{\"name\":\"福彩资讯\",\"sub_button\":[{\"type\":\"click\",\"name\":\"关注并转发\",\"key\":\"V1001_GZBZF\"},{\"type\":\"view\",\"name\":\"彩市新闻\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newscaishi.jsp\"},{\"type\":\"view\",\"name\":\"中奖喜讯\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsxixun.jsp\"},{\"type\":\"view\",\"name\":\"福彩公益\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsgonyi.jsp\"},{\"type\":\"view\",\"name\":\"幸运抽奖\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fchou.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
				+"\"}]},{\"type\":\"view\",\"name\":\"开奖信息\",\"url\":\"http://182.61.7.64/xbstarcas/weixin/jiangqihome.jsp\"},{\"name\":\"彩民工具\",\"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fneardep.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"注册\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fregister.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"用户验证\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FLogin.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"}"
				+",{\"type\":\"click\",\"name\":\"查询金豆\",\"key\":\"V3004_FUDOU\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO"
				+"\"}]}"
				+"]}";*/
//		String str="{\"button\":[{\"name\":\"福彩资讯\",\"sub_button\":[{\"type\":\"view\",\"name\":\"彩市新闻\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newscaishi.jsp\"},{\"type\":\"view\",\"name\":\"中奖喜讯\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsxixun.jsp\"},{\"type\":\"view\",\"name\":\"福彩公益\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsgonyi.jsp\"},{\"type\":\"view\",\"name\":\"幸运抽奖\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fchou.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//				+"\"}]},{\"type\":\"view\",\"name\":\"开奖信息\",\"url\":\"http://182.61.7.64/xbstarcas/weixin/jiangqihome.jsp\"},{\"name\":\"彩民工具\",\"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fneardep.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"注册\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fregister.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"用户验证\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FLogin.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"}"
//				+",{\"type\":\"click\",\"name\":\"查询金豆\",\"key\":\"V3004_FUDOU\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO"
//				+"\"}]}"
//				+"]}";
//		String str="{\"button\":[{\"name\":\"福彩资讯\",\"sub_button\":[{\"type\":\"view\",\"name\":\"彩市新闻\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newscaishi.jsp\"},{\"type\":\"view\",\"name\":\"中奖喜讯\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsxixun.jsp\"},{\"type\":\"view\",\"name\":\"福彩公益\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsgonyi.jsp\"},{\"type\":\"view\",\"name\":\"幸运抽奖\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fchou.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"
//		+"\"}]},{\"type\":\"view\",\"name\":\"开奖信息\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/weixin/jiangqihome.jsp\"},{\"name\":\"彩民工具\",\"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fneardep.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"注册\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2Fregister.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"},{\"type\":\"view\",\"name\":\"用户验证\",\"url\":\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx439c9c70c3815ad0&redirect_uri=http%3A%2F%2F182.61.7.64%2Fxbstarcas%2Fweixin%2FLogin.jsp&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"}"
//		+",{\"type\":\"click\",\"name\":\"查询金豆\",\"key\":\"V3004_FUDOU\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO"
//		+"\"}]}"
//		+"]}";
		/*String str="{\"button\":[{\"name\":\"福彩资讯\",\"sub_button\":[{\"type\":\"view\",\"name\":\"彩市新闻\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newscaishi.jsp\"},{\"type\":\"view\",\"name\":\"中奖喜讯\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsxixun.jsp\"},{\"type\":\"view\",\"name\":\"福彩公益\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsgonyi.jsp\"},{\"type\":\"view\",\"name\":\"幸运抽奖\",\"url\":\""+chouurl
				+"\"}]},{\"type\":\"view\",\"name\":\"开奖信息\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/weixin/jiangqihome.jsp\"},{\"name\":\"彩民工具\",\"sub_button\":[{\"type\":\"view\",\"name\":\"附近投注站\",\"url\":\""+nearUrl+"\"},{\"type\":\"view\",\"name\":\"注册\",\"url\":\""+zhuceurl+"\"},{\"type\":\"view\",\"name\":\"登录\",\"url\":\""+denglurl+"\"}"
				+",{\"type\":\"click\",\"name\":\"查询金豆\",\"key\":\"V3004_FUDOU\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO"
				+"\"}]}"
				+"]}";*/
		
		
		HttpClient client=null;
		String url="http://106.ihuyi.cn/webservice/sms.php?method=Submit&account=cf_jiwenfei&password=123456&mobile=18939171435&content=这是测试，无锡福彩。";
	/*	try {
			client=new DefaultHttpClient();
			HttpGet get=new HttpGet(url);
			HttpResponse response=client.execute(get);
			if (response.getStatusLine().getStatusCode()==HttpStatus.SC_OK ) {
				HttpEntity entity=response.getEntity();
				String str=EntityUtils.toString(entity);
				System.out.println(str);
			}
		} catch (Exception e) {
			
		}*/
		String str="{\"button\":[{\"name\":\"养老动态\",\"sub_button\":[{\"type\":\"click\",\"name\":\"通知公告\",\"key\":\"V1001_ZUI_XIN"
				+"\"},{\"type\":\"view\",\"name\":\"养老动态\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newscaishi.jsp\"},{\"type\":\"view\",\"name\":\"每月简报\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newsgonyi.jsp\"},{\"type\":\"click\",\"name\":\"签到\",\"key\":\"V1001_QIAN_DAO"
				+"\"}]},{\"name\":\"亲人\",\"sub_button\":[{\"type\":\"click\",\"name\":\"当前情况\",\"key\":\"V1001_ZUI_XIN1\"},{\"type\":\"click\",\"name\":\"查看详情\",\"key\":\"V1001_ZUI_XI2N\"}"
				+"]},{\"name\":\"我\",\"sub_button\":[{\"type\":\"view\",\"name\":\"我的钱包\",\"url\":\""+nearUrl+"\"},{\"type\":\"view\",\"name\":\"我要留言\",\"url\":\"http://weixin.jswxfc.com:9002/xbstarcas/news/newszfzx.jsp\"}"
				+",{\"type\":\"view\",\"name\":\"亲人关怀\",\"url\":\""+chouurl
				+"\"}]}"
				+"]}";
		System.out.println(str);
		JSONObject object=null;
		try {
			object = new JSONObject(str);
			System.out.println(object);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		APPProperties.setMenu(object);
		//String url1="https://api.weixin.qq.com/cgi-bin/menu/create?access_token="+APPProperties.getAccess_token();
		
		try {
			//APPProperties.send2WeiByPostMethod(url1, object);
			System.out.println(APPProperties.getMenu().toString());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		//上传图片
		/*System.out.println("开始上传图片");
		File file=new File("C:/Users/xbx/Pictures/Saved Pictures/homedeng.jpg");
		JSONObject object1=null;
		try {
			object1 = JFWeiService.upLoadTmpMedia(MediaType.Image, file,"homedeng.jpg");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return;
		}
		System.out.println(object1);
		String objjjString="";
		try {
			objjjString = object1.getString("media_id");
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("上传图片结束，mdeiaid是："+objjjString);*/
		/*HashMap<String,String>article=ArticleUtils.getArticleByArticleId("101");
		String articleTitle;
		 String htmlContent;
		 String time;
		 String author;
		 if(article==null){
			 articleTitle="要访问的页面不存在";
			 time=new Date().toLocaleString();
			 author="管理员";
			 htmlContent="<img src=\"img/error.gif \" width=200 height=200\" style=\" margin-right:auto;margin-left:5em;\" /><hr/>如想访问，请联系我们的工作人员";
		 }else{
			 articleTitle=article.get("articleTitle");
			 htmlContent=article.get("htmlContent") ;
			 time=article.get("articleAuditingDate");
			 author=article.get("articleEditor");
		 }*/
		
		//String sssf="<tr><td><a href='www.baidu.com'>这是链接</a><span >MsgType : 实打实大苏打是的说法是否顺丰到付的身份</span></td><td></tr>";
		/* String sssf="<P style=\"TEXT-ALIGN: left; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=left><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\"><FONT size=4>★恭喜以下<SPAN lang=EN-US>15</SPAN>位参与者获得<SPAN lang=EN-US>50</SPAN>元\"中福在线”体验卡</FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>138****7956<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>180****0738<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>185****9065<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>151****1566<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>138****8112<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>138****8593<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>139****7513<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>137****9291<o:p></o:p></FONT></SPAN></P><P style=\"TEXT-ALIGN: center; MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal align=center><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 18pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><FONT size=4>134****5983<o:p></o:p></FONT></SPAN></P><P style=\"MARGIN: 0pt 0pt 10pt; mso-pagination: widow-orphan\" class=MsoNormal><SPAN style=\"FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><BR></SPAN><SPAN style=\"FONT-FAMILY: 宋体; FONT-SIZE: 13.5pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\"><FONT size=4>★请保持手机畅通，届时福彩工作人员将会通知您！</FONT><SPAN lang=EN-US><BR></SPAN><FONT size=4>★【领奖地点】：</FONT><SPAN lang=EN-US><BR><FONT size=4>&nbsp;&nbsp;&nbsp;&nbsp;</FONT></SPAN><FONT size=4>市区和锡山中奖者：无锡市福利彩票发行中心一楼大厅（南禅寺商城<SPAN lang=EN-US>32-8</SPAN>，步行街东面牌坊旁），电话：<SPAN lang=EN-US>82820755</SPAN>。</FONT><SPAN lang=EN-US><BR><FONT size=4>&nbsp;&nbsp;&nbsp; </FONT></SPAN><FONT size=4>江阴中奖者：江阴市福彩中心（青果路<SPAN lang=EN-US>129</SPAN>号），电话：<SPAN lang=EN-US>86001907</SPAN>。</FONT><SPAN lang=EN-US><BR><FONT size=4>&nbsp;&nbsp;&nbsp; </FONT></SPAN><FONT size=4>宜兴中奖者：宜兴市福彩中心（宜城街道荆邑中路<SPAN lang=EN-US>288</SPAN>号），电话：<SPAN lang=EN-US>87962026</SPAN>。</FONT><SPAN lang=EN-US><BR></SPAN><FONT size=4>★【领奖时间】：即日起至<?xml:namespace prefix = st1 ns = \"urn:schemas-microsoft-com:office:smarttags\" /><st1:chsdate w:st=\"on\" IsROCDate=\"False\" IsLunarDate=\"False\" Day=\"30\" Month=\"11\" Year=\"2015\"><SPAN lang=EN-US>11</SPAN>月<SPAN lang=EN-US>30</SPAN>日</st1:chsdate>（<SPAN lang=EN-US>9:00-17:00</SPAN>）</FONT><SPAN lang=EN-US><BR></SPAN><FONT size=4>★【领奖手续】：持本人身份证原件及参与手机现场验证。</FONT></SPAN><SPAN style=\"FONT-FAMILY: 宋体; mso-bidi-font-size: 10.5pt; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体\" lang=EN-US><o:p></o:p></SPAN></P>";
		 String strpost="{\"articles\":[{\"thumb_media_id\":\""+objjjString+"\", \"author\":\"xxx\",\"title\":\"这是测试\",\"content_source_url\":\"www.qq.com\", \"content\":\""+sssf+"\",\"digest\":\"这是描述信息\",\"show_cover_pic\":1}]}";
		JSONObject object2=null;
		try {
			object2 = new JSONObject(strpost);
		} catch (JSONException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		try {
			System.out.println("上传多媒体信息为：" +object2.toString());
			JSONObject restttJsonObject=JFWeiService.send2WeiByPostMethod(WeiURL.getUPloadNewsMediaUrl(), object2);
			System.out.println("获得的news结果为："+restttJsonObject.toString());
			String midString=restttJsonObject.get("media_id")+"";
			System.out.println("发送信息到预览");
			// my  o4AljuJgnrdw7PufRUzNe_LL-jS0     
			String sendtrString="{\"touser\":\"o4AljuI7q4s9HzlexOcvbg9E5tz8\",\"mpnews\":{\"media_id\":\""+midString+"\"},\"msgtype\":\"mpnews\"}";
			//发送预览消息
			JSONObject sendtomy=new JSONObject(sendtrString);
			String send2yulan="https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token="+APPProperties.getAccess_token();
			JSONObject jjsond=JFWeiService.send2WeiByPostMethod(send2yulan, sendtomy);
			System.out.println(jjsond.toString());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		
		
		
	}
//{"access_token":"OezXcEiiBSKSxW0eoylIeJiV8A5CH2RioAivU5uOzE6q8RZiUq2uXwUixkgB2uUhFMy9BZ0w1MWEpOntMn3PlmC_VYpsOlKQnhqxk-6LPjyT9NS6VGB6716y1LR_FYHwUPeWFL4JG_tEiqHAthnrbg","expires_in":7200,"refresh_token":"OezXcEiiBSKSxW0eoylIeJiV8A5CH2RioAivU5uOzE6q8RZiUq2uXwUixkgB2uUh9MfPOPuMmngvuDDN_E9z0FPpKlh1Al-eVD0KywtdXEteyeEwdGMAPrft99fKafMgrSWyn-f99JRdvjoaEa0ueg","openid":"oC-tVv2hTu2UUu5dE4bMCwslkWXc","scope":"snsapi_base"}
}
//{"type":"image","media_id":"l1bgXhq0I3pZOFSUAVg1zepBJyCA3veQJL5vh-m85qdntdedDhkiCh69bP7mCcev","created_at":1445416937}
